using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace HamcoWcs.Entitys.Logs
{
    public class SystemErrorLogConfig : IEntityTypeConfiguration<SystemErrorLog>
    {
        public void Configure(EntityTypeBuilder<SystemErrorLog> builder)
        {
            builder.HasComment("系统异常表");
            builder.Property(x => x.Log).IsRequired().HasMaxLength(255).HasComment("日志内容");
        }
    }
}